<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="Content-Type" content="text/html; charset=UTF-8" />
<title>Class: Sass::Script::Functions::EvaluationContext</title>
<link rel="stylesheet" href="style.css" tppabs="http://sass-lang.com/docs/yardoc/css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="common.css" tppabs="http://sass-lang.com/docs/yardoc/css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '../../..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="jquery.js" tppabs="http://sass-lang.com/docs/yardoc/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="app.js" tppabs="http://sass-lang.com/docs/yardoc/js/app.js"></script>

  </head>
  <body>
    <script type="text/javascript" charset="utf-8">
      if (window.top.frames.main) document.body.className = 'frames';
    </script>
    
    <div id="header">
      <div id="menu">
  
    <a href="_index.html" tppabs="http://sass-lang.com/docs/yardoc/_index.html">Index (E)</a> &raquo; 
    <span class='title'><a href="Sass-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass.html" title="Sass (module)">Sass</a></span> &raquo; <span class='title'><a href="Script.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script.html" title="Sass::Script (module)">Script</a></span> &raquo; <span class='title'><a href="Functions.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html" title="Sass::Script::Functions (module)">Functions</a></span>
     &raquo; 
    <span class="title">EvaluationContext</span>
  
  
  <div class="noframes"><span class="title">(</span><a href="javascript:if(confirm(%27http://sass-lang.com/docs/yardoc/Sass/Script/Functions/.  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?%27))window.location=%27http://sass-lang.com/docs/yardoc/Sass/Script/Functions/.%27" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions/." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  <a id="class_list_link" href="#">Class List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Class: Sass::Script::Functions::EvaluationContext 
  
  
</h1>

<dl class="box">
  
    <dt class="r1">Inherits:</dt>
    <dd class="r1">
      <span class="inheritName">Object</span>
      
        <ul class="fullTree">
          <li>Object</li>
          
            <li class="next">Sass::Script::Functions::EvaluationContext</li>
          
        </ul>
        <a href="#" class="inheritanceTree">show all</a>
      
      </dd>
    
  
  
    
  
    
      <dt class="r2">Includes:</dt>
      <dd class="r2"><a href="Functions.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html" title="Sass::Script::Functions (module)"></a></dd>
      
    
  
  
    <dt class="r1 last">Defined in:</dt>
    <dd class="r1 last">/var/www/sass-pages/.sass/lib/sass/script/functions.rb</dd>
  
</dl>
<div class="clear"></div>

<h2>Overview</h2><div class="docstring">
  <div class="discussion">
    <p>The context in which methods in <tt><a href="Functions.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html" title="Sass::Script::Functions (module)">Script::Functions</a></tt> are evaluated. That means that all instance methods of <tt><a href="" title="Sass::Script::Functions::EvaluationContext (class)">EvaluationContext</a></tt> are available to use in functions.</p>

  </div>
</div>
<div class="tags">
  
</div>

  
  
  
  
  <h2>Instance Attribute Summary</h2>
  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#options-instance_method" title="#options (instance method)">- ({Symbol =&gt; Object}) <strong>options</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  

  
    <span class="summary_desc">The options hash for the <tt><a href="Engine.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Engine.html" title="Sass::Engine (class)">Sass::Engine</a></tt> that is processing the function call.</span>
  
</li>

    
  </ul>


  <h2>Instance Method Summary</h2>

  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#assert_type-instance_method" title="#assert_type (instance method)">- <strong>assert_type</strong>(value, type, name = nil) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Asserts that the type of a given SassScript value is the expected type (designated by a symbol).</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#initialize-instance_method" title="#initialize (instance method)">- (EvaluationContext) <strong>initialize</strong>(options) </a>
    

    
  </span>
  
    <span class="note title constructor">constructor</span>
  
  
  
  
  

  
    <span class="summary_desc">A new instance of EvaluationContext.</span>
  
</li>

    
  </ul>

  
  
  
  
  
  <h3 class="inherited">Methods included from <a href="Functions.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html" title="Sass::Script::Functions (module)"></a></h3>
  <p class="inherited"><a href="Functions.html#abs-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#abs-instance_method" title="Sass::Script::Functions#abs (method)">#abs</a>, <a href="Functions.html#adjust_color-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#adjust_color-instance_method" title="Sass::Script::Functions#adjust_color (method)">#adjust_color</a>, <a href="Functions.html#adjust_hue-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#adjust_hue-instance_method" title="Sass::Script::Functions#adjust_hue (method)">#adjust_hue</a>, <a href="Functions.html#alpha-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#alpha-instance_method" title="Sass::Script::Functions#alpha (method)">#alpha</a>, <a href="Functions.html#append-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#append-instance_method" title="Sass::Script::Functions#append (method)">#append</a>, <a href="Functions.html#blue-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#blue-instance_method" title="Sass::Script::Functions#blue (method)">#blue</a>, <a href="Functions.html#ceil-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#ceil-instance_method" title="Sass::Script::Functions#ceil (method)">#ceil</a>, <a href="Functions.html#change_color-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#change_color-instance_method" title="Sass::Script::Functions#change_color (method)">#change_color</a>, <a href="Functions.html#comparable-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#comparable-instance_method" title="Sass::Script::Functions#comparable (method)">#comparable</a>, <a href="Functions.html#complement-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#complement-instance_method" title="Sass::Script::Functions#complement (method)">#complement</a>, <a href="Functions.html#darken-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#darken-instance_method" title="Sass::Script::Functions#darken (method)">#darken</a>, <a href="Functions.html#declare-class_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#declare-class_method" title="Sass::Script::Functions.declare (method)">declare</a>, <a href="Functions.html#desaturate-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#desaturate-instance_method" title="Sass::Script::Functions#desaturate (method)">#desaturate</a>, <a href="Functions.html#floor-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#floor-instance_method" title="Sass::Script::Functions#floor (method)">#floor</a>, <a href="Functions.html#grayscale-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#grayscale-instance_method" title="Sass::Script::Functions#grayscale (method)">#grayscale</a>, <a href="Functions.html#green-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#green-instance_method" title="Sass::Script::Functions#green (method)">#green</a>, <a href="Functions.html#hsl-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#hsl-instance_method" title="Sass::Script::Functions#hsl (method)">#hsl</a>, <a href="Functions.html#hsla-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#hsla-instance_method" title="Sass::Script::Functions#hsla (method)">#hsla</a>, <a href="Functions.html#hue-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#hue-instance_method" title="Sass::Script::Functions#hue (method)">#hue</a>, <a href="Functions.html#ie_hex_str-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#ie_hex_str-instance_method" title="Sass::Script::Functions#ie_hex_str (method)">#ie_hex_str</a>, <a href="Functions.html#if-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#if-instance_method" title="Sass::Script::Functions#if (method)">#if</a>, <a href="Functions.html#index-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#index-instance_method" title="Sass::Script::Functions#index (method)">#index</a>, <a href="Functions.html#invert-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#invert-instance_method" title="Sass::Script::Functions#invert (method)">#invert</a>, <a href="Functions.html#join-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#join-instance_method" title="Sass::Script::Functions#join (method)">#join</a>, <a href="Functions.html#length-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#length-instance_method" title="Sass::Script::Functions#length (method)">#length</a>, <a href="Functions.html#lighten-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#lighten-instance_method" title="Sass::Script::Functions#lighten (method)">#lighten</a>, <a href="Functions.html#lightness-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#lightness-instance_method" title="Sass::Script::Functions#lightness (method)">#lightness</a>, <a href="Functions.html#max-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#max-instance_method" title="Sass::Script::Functions#max (method)">#max</a>, <a href="Functions.html#min-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#min-instance_method" title="Sass::Script::Functions#min (method)">#min</a>, <a href="Functions.html#mix-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#mix-instance_method" title="Sass::Script::Functions#mix (method)">#mix</a>, <a href="Functions.html#nth-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#nth-instance_method" title="Sass::Script::Functions#nth (method)">#nth</a>, <a href="Functions.html#opacify-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#opacify-instance_method" title="Sass::Script::Functions#opacify (method)">#opacify</a>, <a href="Functions.html#opacity-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#opacity-instance_method" title="Sass::Script::Functions#opacity (method)">#opacity</a>, <a href="Functions.html#percentage-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#percentage-instance_method" title="Sass::Script::Functions#percentage (method)">#percentage</a>, <a href="Functions.html#quote-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#quote-instance_method" title="Sass::Script::Functions#quote (method)">#quote</a>, <a href="Functions.html#red-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#red-instance_method" title="Sass::Script::Functions#red (method)">#red</a>, <a href="Functions.html#rgb-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#rgb-instance_method" title="Sass::Script::Functions#rgb (method)">#rgb</a>, <a href="Functions.html#rgba-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#rgba-instance_method" title="Sass::Script::Functions#rgba (method)">#rgba</a>, <a href="Functions.html#round-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#round-instance_method" title="Sass::Script::Functions#round (method)">#round</a>, <a href="Functions.html#saturate-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#saturate-instance_method" title="Sass::Script::Functions#saturate (method)">#saturate</a>, <a href="Functions.html#saturation-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#saturation-instance_method" title="Sass::Script::Functions#saturation (method)">#saturation</a>, <a href="Functions.html#scale_color-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#scale_color-instance_method" title="Sass::Script::Functions#scale_color (method)">#scale_color</a>, <a href="Functions.html#signature-class_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#signature-class_method" title="Sass::Script::Functions.signature (method)">signature</a>, <a href="Functions.html#transparentize-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#transparentize-instance_method" title="Sass::Script::Functions#transparentize (method)">#transparentize</a>, <a href="Functions.html#type_of-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#type_of-instance_method" title="Sass::Script::Functions#type_of (method)">#type_of</a>, <a href="Functions.html#unit-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#unit-instance_method" title="Sass::Script::Functions#unit (method)">#unit</a>, <a href="Functions.html#unitless-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#unitless-instance_method" title="Sass::Script::Functions#unitless (method)">#unitless</a>, <a href="Functions.html#unquote-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#unquote-instance_method" title="Sass::Script::Functions#unquote (method)">#unquote</a>, <a href="Functions.html#zip-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#zip-instance_method" title="Sass::Script::Functions#zip (method)">#zip</a></p>
<div id="constructor_details" class="method_details_list">
  <h2>Constructor Details</h2>
  
    <div class="method_details first">
  <p class="signature first" id="initialize-instance_method">
  
    - (<tt><a href="" title="Sass::Script::Functions::EvaluationContext (class)">EvaluationContext</a></tt>) <strong>initialize</strong>(options) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>A new instance of EvaluationContext</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>{Symbol =&gt; Object}</tt>)</span>
      
      
        <span class='name'>options</span>
      
      
      
        &mdash;
        See <tt><a href="#options-instance_method" title="Sass::Script::Functions::EvaluationContext#options (method)">#options</a></tt>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


318
319
320</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/functions.rb', line 318</span>

def initialize(options)
  @options = options
end</pre>
    </td>
  </tr>
</table>
</div>
  
</div>

  <div id="instance_attr_details" class="attr_details">
    <h2>Instance Attribute Details</h2>
    
      
      <span id=""></span>
      <span id="options-instance_method"></span>
      <div class="method_details first">
  <p class="signature first" id="options-instance_method">
  
    - (<tt>{Symbol =&gt; Object}</tt>) <strong>options</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The options hash for the <tt><a href="Engine.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Engine.html" title="Sass::Engine (class)">Sass::Engine</a></tt> that is processing the function call</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>{Symbol =&gt; Object}</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


315
316
317</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/functions.rb', line 315</span>

def options
  @options
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>


  <div id="instance_method_details" class="method_details_list">
    <h2>Instance Method Details</h2>
    
    
      <div class="method_details first">
  <p class="signature first" id="assert_type-instance_method">
  
    - <strong>assert_type</strong>(value, type, name = nil) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Asserts that the type of a given SassScript value is the expected type (designated by a symbol).</p>

<p>Valid types are <code>:Bool</code>, <code>:Color</code>, <code>:Number</code>, and <code>:String</code>. Note that <code>:String</code> will match both double-quoted strings and unquoted identifiers.</p>

  </div>
</div>
<div class="tags">
  
  <div class="examples">
    <h3>Examples:</h3>
    
      <h4></h4>
      <pre class="example code">  assert_type value, :String
  assert_type value, :Number</pre>
    
  </div>
<h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="Literal.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Literal.html" title="Sass::Script::Literal (class)">Sass::Script::Literal</a></tt>)</span>
      
      
        <span class='name'>value</span>
      
      
      
        &mdash;
        A SassScript value
      
    </li>
  
    <li>
      
        <span class='type'>(<tt>Symbol</tt>)</span>
      
      
        <span class='name'>type</span>
      
      
      
        &mdash;
        The name of the type the value is expected to be
      
    </li>
  
    <li>
      
        <span class='type'>(<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">String</a></tt>, <tt>nil</tt>)</span>
      
      
        <span class='name'>name</span>
      
      
        <em class="default">(defaults to: <tt>nil</tt>)</em>
      
      
        &mdash;
        The name of the argument.
      
    </li>
  
</ul>
<h3>Raises:</h3>
<ul class="raise">
  
    <li>
      
        <span class='type'>(<tt>ArgumentError</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


335
336
337
338
339
340</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/functions.rb', line 335</span>

def assert_type(value, type, name = nil)
  return if value.is_a?(Sass::Script.const_get(type))
  err = "#{value.inspect} is not a #{type.to_s.downcase}"
  err = "$#{name}: " + err if name
  raise ArgumentError.new(err)
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on Fri Mar  8 20:33:44 2013 by 
  <a href="javascript:if(confirm(%27http://yardoc.org/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://yardoc.org/%27" tppabs="http://yardoc.org/" title="Yay! A Ruby Documentation Tool">yard</a>
  0.5.3 (ruby-1.8.7).
</div>


  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-535380-8");
  pageTracker._trackPageview();
  } catch(err) {}</script>


  </body>
</html>